package com.example.article.dao.secondary;

import com.example.article.po.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

//持久层接口
public interface UserRepository extends MongoRepository<User,String> {

    Page<User> findByUserName(String userName, Pageable pageable);
}